/**
 * 使用mock生成随机数据
 */
let Mock = require('mockjs');
let Random = Mock.Random;

module.exports = function () {
  var data = {
    about: {},
    home: {}
  };

  // About
  let aboutData = [];
  for (var i = 0; i < 10; i++) {
    aboutData.push({
      id: i,
      name: Random.cword(8, 20)
    });
  }
  data.about['data'] = aboutData;

  return data;
}
